home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Form / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-09-17  |  4.3 KB  |  141 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. #ifndef FWMENUS_K
  14. #include "FWMenus.k"
  15. #endif
  16.  
  17. //-------------------------------------------------------------------------------------
  18. // Uncomment the following three lines, and define them appropriately!!
  19. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  20. // to be 1.  Otherwise define it to be 0.
  21. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  22. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  23. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  24. // define it to be zero.  Note that if your part is scriptable is must support
  25. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  26.  
  27. #define FW_SUPPORTS_EMBEDDING     0
  28. #define FW_SUPPORTS_EXTENSIONS     0
  29. #define FW_SUPPORTS_SCRIPTING     0
  30.  
  31. //-------------------------------------------------------------------------------------
  32. // Use the following flags to determine which view resources will be used by Form
  33.  
  34. #define FW_ODFRC_VIEWS            1        
  35. #define FW_MACAPP_VIEWS            0    
  36. #define FW_PPOB_VIEWS            0
  37.  
  38. //-------------------------------------------------------------------------------------
  39. // Presentations
  40. #define kMainPresentation                "ODF:Presentation:Form"
  41. #define kPasswordDialogPresentation        "ODF:Presentation:Form:PasswordDialog"
  42. #define kInvalidDialogPresentation        "ODF:Presentation:Form:InvalidDialog"
  43.  
  44. //-------------------------------------------------------------------------------------
  45. // Menus
  46. #define kMenuBar                 1024
  47.  
  48. #define  cResetFormCommand        FW_kFirstUserCommandID
  49.  
  50. #if FW_PPOB_VIEWS
  51. #define  cReloadPPobViews        cResetFormCommand + 1
  52. #endif
  53. #if FW_MACAPP_VIEWS
  54. #define  cReloadMacAppViews        cResetFormCommand + 1
  55. #endif
  56.  
  57. //-------------------------------------------------------------------------------------
  58. // Icons ID
  59. #define kViewAsIconID            128
  60. #define kAboutIconID            130
  61.  
  62. //-------------------------------------------------------------------------------------
  63. // About
  64. #define kAbout                     1024
  65.  
  66. //-------------------------------------------------------------------------------------
  67. // Document Window
  68. #define kDocumentWindowID        1024
  69.  
  70. //-------------------------------------------------------------------------------------
  71. // Part Info 
  72. #define kPartInfoID             1024
  73.  
  74. //-------------------------------------------------------------------------------------
  75. //     Views
  76. // Form frame
  77. #define kFormView                1024
  78.  
  79. #define kHorzScrollBarID        'horz'
  80. #define kVertScrollBarID        'vert' 
  81. #define kGrowBoxID                 'grow'        
  82.  
  83. #define kFormViewID                100
  84.  
  85. #define kFirstNameEdViewID        101
  86. #define    kLastNameEdViewID        kFirstNameEdViewID + 1
  87. #define kMemberNameEdViewID        kLastNameEdViewID + 1
  88. #define kEMailEdViewID            kMemberNameEdViewID + 1
  89. #define kCommentsEdViewID        kEMailEdViewID + 1
  90.  
  91. #define  kEditHScrollBarID        108
  92. #define  kEditVScrollBarID        109
  93. #define  kSubscribeCheckID         110
  94. #define  kBrowseTimePopupID     111
  95. #define  kOnlineTimePopupID     112
  96.  
  97. #define  k14400RadioID             113
  98. #define  k28800RadioID             114
  99. #define  kFasterRadioID         115
  100. #define  kWordOfMouthRadioID     116
  101. #define  kHyperLinkRadioID         117
  102. #define  kMacTechRadioID         118
  103. #define  kMagazineRadioID         119
  104. #define  kOtherRadioID             120
  105. #define  kYesRadioID             121
  106. #define  kNoRadioID             122
  107.  
  108. #define  kSubscribeButtonID     123
  109. #define  kAddButtonID             124
  110. #define  kRemoveButtonID         125
  111. #define  kPlatformListBoxID        130
  112.  
  113. // Password Dialog frame
  114. #define kPasswordDialog            1025
  115.  
  116. #define kOKButtonID             1
  117. #define kCancelButtonID         2
  118. #define kPasswordEditID         3
  119. #define kConfirmEditID             4
  120.  
  121. //     Radio-clusters constants
  122. #define kNumRadioClusters        3
  123. #define kNumRadioButtons        kNoRadioID - k14400RadioID + 1
  124.  
  125. //-------------------------------------------------------------------------------------
  126. //     Mac-specific Resources
  127.  
  128. #ifdef FW_BUILD_MAC
  129.  
  130. // ODF Popups use Mac MENU resources for now
  131. #define kBrowseTimeMenuResID     1000
  132. #define kOnlineTimeMenuResID     1001
  133.  
  134. // Pictures used in CFormView class
  135. #define kFormPict1                130
  136. #define kFormPict2                131
  137.  
  138. #endif // FW_BUILD_MAC
  139.  
  140. #endif
  141.